﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TimeTracker.Data.Contracts;
using TimeTracker.Model;

namespace TimeTracker.WebUI.Controllers
{
    public class TasksController : ApiBaseController
    {
        public TasksController(ITimeTrackerUow uow)
        {
            Uow = uow;
        }

        public IEnumerable<Task> Get()
        {
            return Uow.Tasks.GetAll().OrderBy(p => p.Name);
        }

    }
}
